package com.wws.family.db.dao

import androidx.room.Dao
import androidx.room.Query
import com.wws.family.db.NoteBookBean

/**
 *@Description: 纪念日数据Dao
 *@Date: 2024/11/04 14:06
 *@Author: WangWeiShuo
 */
@Dao
interface NoteBookDao: BaseDao<NoteBookBean> {

    @Query("select * from db_commemoration")
    fun getNoteBookInfo(): MutableList<NoteBookBean>

    @Query("delete from db_commemoration")
    fun deleteAll()

    @Query("delete from db_commemoration where name = :name")
    fun deleteByName(name: String)
}